home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_363 / bootbase / src / bootbase.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  9KB  |  245 lines

  1.  
  2. SHORT OffBordervecs[] = { 0,0, 43,0, 43,9, 0,9, 0,0, 43,9 };
  3. struct Border OffBorder = { -2,-1, 2,2,JAM2, 6, OffBordervecs, NULL };
  4.  
  5. SHORT OnBordervecs[] = { 0,0, 43,0, 43,9, 0,9, 0,0};
  6. struct Border OnBorder = { -2,-1, 3,3,JAM2, 5, OnBordervecs, NULL };
  7.  
  8.  
  9. /*********************************************************************/
  10. /* DF3 gadget */
  11. /***************************/
  12.  
  13. struct IntuiText DF3Text = { 1,0,JAM2, 8,0, NULL, "DF3", NULL };
  14.  
  15. struct Gadget df3gag = {
  16.         NULL, 595,87, 40,9, NULL, RELVERIFY, BOOLGADGET,
  17.         (APTR)&OffBorder, NULL, &DF3Text, NULL, NULL, 11, NULL
  18. };
  19. /*********************************************************************/
  20. /* DF2 gadget */
  21. /****************************/
  22.  
  23. struct IntuiText DF2Text = { 1,0,JAM2, 8,0, NULL, "DF2", NULL };
  24.  
  25. struct Gadget df2gag = {
  26.         NULL, 545,87, 40,9, NULL, RELVERIFY, BOOLGADGET,
  27.         (APTR)&OffBorder, NULL, &DF2Text, NULL, NULL, 12, NULL
  28. };
  29. /*********************************************************************/
  30. /* DF1 gadget */
  31. /***************************/
  32. struct IntuiText DF1Text = { 1,0,JAM2, 8,0, NULL, "DF1", NULL };
  33.  
  34. struct Gadget df1gag = {
  35.         NULL, 595,75, 40,9, NULL, RELVERIFY, BOOLGADGET,
  36.         (APTR)&OffBorder, NULL, &DF1Text, NULL, NULL, 13, NULL
  37. };
  38. /*********************************************************************/
  39. /* DF0 gadget */
  40. /****************************/
  41. struct IntuiText DF0Text = { 1,0,JAM2, 8,0, NULL, "DF0", NULL };
  42.  
  43. struct Gadget df0gag = {
  44.         NULL, 545,75, 40,9, NULL, RELVERIFY, BOOLGADGET,
  45.         (APTR)&OffBorder, NULL, &DF0Text, NULL, NULL, 14, NULL
  46. };
  47. /**********************/
  48. #define STRINGSIZE 80
  49. unsigned char StringBuffer[STRINGSIZE] = {""};
  50. unsigned char UndoBuffer  [STRINGSIZE];
  51.  
  52. struct StringInfo StringInfo =
  53.     { StringBuffer,UndoBuffer,0,STRINGSIZE,0,0,0,0,0,0,NULL,0,NULL, };
  54.  
  55.  
  56. struct Gadget StringGadget =
  57.    {
  58.    &df0gag, 96, 26, 439, 10, GADGHCOMP, RELVERIFY, STRGADGET, NULL,
  59.    NULL, NULL, NULL, (APTR)&StringInfo, 15, NULL,
  60. };
  61. /*********************************************************************/
  62. /* Comment select */
  63. /****************************/
  64.  
  65. SHORT CommentBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  66. struct Border CommentBorder =
  67.                         { -2,-1, 3,0,JAM1, 5, CommentBorderVecs, NULL };
  68. struct IntuiText CommentTex = { 1,0,JAM2, 21,0, NULL, "Comment", NULL };
  69. struct Gadget CommentGadget = {
  70.     &StringGadget, 540,123, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
  71.     (APTR)&CommentBorder, NULL, &CommentTex, NULL, NULL, 10, NULL
  72. };
  73.  
  74. /*********************************************************************/
  75. /* pickup standard gadget */
  76. /**************************/
  77. SHORT StanBordervecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  78. struct Border StanBorder = { -2,-1, 3,0,JAM1, 5, StanBordervecs, NULL };
  79.  
  80. struct IntuiText PickStanTex = { 1,0,JAM2, 18,0, NULL, "Standard", NULL };
  81.  
  82. struct Gadget PickStan = {
  83.         &CommentGadget, 540,100, 95,8, NULL, RELVERIFY, BOOLGADGET,
  84.         (APTR)&StanBorder, NULL, &PickStanTex, NULL, NULL, 9, NULL
  85. };
  86.  
  87. /*********************************************************************/
  88. /* pickup noboot-bootblock gadget */
  89. /**********************************/
  90. SHORT NobootBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  91. struct Border NobootBorder =  { -2,-1, 3,0,JAM1, 5, NobootBorderVecs, NULL };
  92.  
  93. struct IntuiText NobootTex = { 1,0,JAM2, 24,0, NULL, "Noboot", NULL };
  94.  
  95. struct Gadget PickNoboot = {
  96.         &PickStan, 540,112, 95,8, NULL, RELVERIFY, BOOLGADGET,
  97.         (APTR)&NobootBorder, NULL, &NobootTex, NULL, NULL, 8, NULL
  98. };
  99.  
  100. /*********************************************************************/
  101.  
  102. /***************/
  103. /* Quit gadget */
  104. /***************/
  105.  
  106. SHORT QuitBorderVecs[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  107. struct Border QuitBorder = { -2,-1, 3,0,JAM1, 5, QuitBorderVecs, NULL };
  108.  
  109. struct IntuiText QuitTex = { 1,0,JAM2, 17,0, NULL, "  Quit  ", NULL };
  110.  
  111. struct Gadget Quitter = {
  112.         &PickNoboot, 540,160, 95,8, NULL, RELVERIFY, BOOLGADGET,
  113.         (APTR)&QuitBorder, NULL, &QuitTex, NULL, NULL, 7, NULL
  114. };
  115. /*********************************************************************/
  116. /* Automatic read bootblock */
  117. /****************************/
  118.  
  119. SHORT BorderVectors1[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  120. struct Border Border1 = { -2,-1, 3,0,JAM1, 5, BorderVectors1, NULL };
  121.  
  122. struct IntuiText IText1 = { 1,0,JAM2, 13,0, NULL, "Auto Read", NULL };
  123.  
  124. struct Gadget AutoR = {
  125.         &Quitter, 540,135, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
  126.         (APTR)&Border1, NULL, &IText1, NULL, NULL, 6, NULL
  127. };
  128.  
  129. /*********************************************************************/
  130. /* Automatic compare gadget */
  131. /****************************/
  132.  
  133. SHORT BorderVectors2[] = { 0,0, 100,0, 100,9, 0,9, 0,0 };
  134. struct Border Border2  = { -2,-1, 3,0,JAM1, 5, BorderVectors2, NULL };
  135.  
  136. struct IntuiText IText2 = { 1,0,JAM2, 0,0, NULL, "Auto Compare", NULL };
  137.  
  138. struct Gadget AutoC = {
  139.         &AutoR, 540,147, 96,8, NULL, RELVERIFY+TOGGLESELECT, BOOLGADGET,
  140.         (APTR)&Border2, NULL, &IText2, NULL, NULL, 5, NULL
  141. };
  142.  
  143. /*********************************************************************/
  144. /* write bb to file gadget */
  145. /***************************/
  146.  
  147. SHORT BorderVectors3[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
  148. struct Border Border3 = { -2,-1, 3,0,JAM1, 5, BorderVectors3, NULL };
  149.  
  150. struct IntuiText IText3 = { 1,0,JAM2, -1,1, NULL, "write", NULL };
  151.  
  152. struct Gadget WriteF = {
  153.         &AutoC, 595,60, 40,9, NULL, RELVERIFY, BOOLGADGET,
  154.         (APTR)&Border3, NULL, &IText3, NULL, NULL, 4, NULL
  155. };
  156.  
  157. /*********************************************************************/
  158. /* read bb from file gadget */
  159. /****************************/
  160.  
  161. SHORT BorderVectors4[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
  162. struct Border Border4 = { -2,-1, 3,0,JAM1, 5, BorderVectors4, NULL };
  163.  
  164. struct IntuiText IText4 = { 1,0,JAM2, 3,1, NULL, "read", NULL };
  165.  
  166. struct Gadget ReadF = {
  167.         &WriteF, 545,60, 40,9, NULL, RELVERIFY, BOOLGADGET,
  168.         (APTR)&Border4, NULL, &IText4, NULL, NULL, 3, NULL
  169. };
  170.  
  171. /*********************************************************************/
  172. /* Write bootblock gadget */
  173. /**************************/
  174. SHORT BorderVectors5[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
  175. struct Border Border5 = { -2,-1, 3,0,JAM1, 5, BorderVectors5, NULL };
  176.  
  177. struct IntuiText IText5 = { 1,0,JAM2, -1,1, NULL, "write", NULL };
  178.  
  179. struct Gadget WriteBB = {
  180.         &ReadF, 595,30, 40,9, NULL, RELVERIFY, BOOLGADGET,
  181.         (APTR)&Border5, NULL, &IText5, NULL, NULL, 2, NULL
  182. };
  183.  
  184. /*********************************************************************/
  185. /* Read bootblock gadget */
  186. /*************************/
  187. SHORT BorderVectors6[] = { 0,0, 43,0, 43,10, 0,10, 0,0 };
  188. struct Border Border6 =  { -2,-1, 3,0,JAM1, 5, BorderVectors6, NULL };
  189.  
  190. struct IntuiText IText6 = { 1,0,JAM2, 3,1, NULL, "read", NULL };
  191.  
  192. struct Gadget ReadBB = {
  193.         &WriteBB, 545,30, 40,9, NULL, RELVERIFY, BOOLGADGET,
  194.         (APTR)&Border6, NULL, &IText6, NULL, NULL, 1, NULL
  195. };
  196.  
  197. /*********************************************************************/
  198.  
  199. struct NewScreen ns =
  200. { 0,0, 640,256, 2, 0,1, HIRES, WBENCHSCREEN, NULL, "Bootbase Screen", NULL };
  201.  
  202. /* NOTICE : The screen is declared as a WBENCHSCREEN because
  203.             I wanted the requesters like NOT A DOS DISK or Please insert ...
  204.             on my own screen.
  205.             This is a little confusing because windows
  206.             opened when my screen is upfront will open on my screen.
  207. */
  208.  
  209. struct NewWindow FirstNewWindow = {
  210.    0, 0, 640, 256, -1, -1,
  211.    CLOSEWINDOW | RAWKEY | MOUSEBUTTONS | DISKINSERTED | GADGETUP,
  212.    BACKDROP | BORDERLESS | ACTIVATE | SMART_REFRESH | RMBTRAP,
  213.    &ReadBB, NULL, (UBYTE *)"", NULL, NULL, 0, 0, 0, 0, WBENCHSCREEN
  214. };
  215.  
  216. SHORT  NoBorderVec[] = { 0,0, 28,0, 28,10, 0,10, 0,0 };
  217. struct Border NoBorder =  { -2,-1, 3,0,JAM1, 5, NoBorderVec, NULL };
  218.  
  219. struct IntuiText NoText = { 1,0,JAM2, 4,1, NULL, "NO", NULL };
  220.  
  221. struct Gadget NoGad = {
  222.         NULL, 260,61, 26,9, NULL, RELVERIFY, BOOLGADGET,
  223.         (APTR)&NoBorder, NULL, &NoText, NULL, NULL, 2, NULL
  224. };
  225.  
  226. SHORT  YesBorderVec[] = { 0,0, 28,0, 28,10, 0,10, 0,0 };
  227. struct Border YesBorder =  { -2,-1, 3,0,JAM1, 5, YesBorderVec, NULL };
  228.  
  229. struct IntuiText YesText = { 1,0,JAM2, 1,1, NULL, "YES", NULL };
  230.  
  231. struct Gadget First = {
  232.         &NoGad, 260,13, 26,9, NULL, RELVERIFY, BOOLGADGET,
  233.         (APTR)&YesBorder, NULL, &YesText, NULL, NULL, 1, NULL
  234. };
  235.  
  236. struct NewWindow ReqWindow = {
  237.    175, 100, 300, 75, 2, 1, CLOSEWINDOW | GADGETUP, WINDOWDRAG | WINDOWDEPTH |
  238.    ACTIVATE | SMART_REFRESH,
  239.    &First, NULL, (UBYTE *)"BB Request",
  240.    NULL, NULL, 100, 20, 640, 256, WBENCHSCREEN
  241. };
  242.  
  243. /****EOF****************************************************************/
  244.  
  245.